//
//  WZPSquareCollectionCell.m
//  WZPItem
//
//  Created by 王王喆平 on 16/7/10.
//  Copyright © 2016年 UI. All rights reserved.
//

#import "WZPSquareCollectionCell.h"
#import "WZPMeSquare.h"
#import <UIImageView+WebCache.h>

@interface WZPSquareCollectionCell()

@property (weak, nonatomic) IBOutlet UIImageView *imagView;
@property (weak, nonatomic) IBOutlet UILabel *textLabel;

@end

@implementation WZPSquareCollectionCell

- (void)awakeFromNib {
    
    [super awakeFromNib];

}
-(void)setItem:(WZPMeSquare *)item{
    
    _item = item;
    
    [_imagView sd_setImageWithURL:[NSURL URLWithString:item.icon]];
    
    _textLabel.text = item.name;

}

@end
